import axios, { CancelToken } from "./config"
export const login = (username, password) => axios({
    url: "/users/login",
    method: 'post',
    data: {
        username,
        password
    }
})
export const getLoginLog = (_this) => axios.get("/getloginlog", {
    cancelToken: new CancelToken(function (c) {
        _this.cancel = c 
    })
})
export const getMenuList = () => axios.get("/permission/getMenuList")